<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

        <!-- Sidebar Menu -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">HEADER</li>
            <!-- Optionally, you can add icons to the links -->
            <!--
            <li class="active"><a href="#"><i class="fa fa-link"></i> <span>Link</span></a></li>
            <li><a href="#"><i class="fa fa-link"></i> <span>Another Link</span></a></li>
            -->

            <li class="treeview {if condition="in_array( strtolower( $Request.controller ), ['index', 'about'] )"}active{/if}">
                <a href="{:url( 'index/index' )}"><i class="fa fa-dashboard"></i> <span>仪表盘</span>
                    <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{:url( 'index/index' )}"><i class="fa fa-circle-o"></i>首页</a></li>
                </ul>
            </li>
            <li class="treeview {if condition="in_array( strtolower( $Request.controller ), ['goods', 'goods.cate', 'goods.item'] )"}active{/if}">
                <a href="{:url( 'goods/index' )}"><i class="fa fa-thumb-tack"></i> <span>商品</span>
                    <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{:url( 'goods/index' )}"><i class="fa fa-circle-o"></i>所有商品</a></li>
                    <li><a href="{:url( 'goods.item/index' )}"><i class="fa fa-circle-o"></i>商品属性</a></li>
                    <li><a href="{:url( 'goods.cate/index' )}"><i class="fa fa-circle-o"></i>商品分类</a></li>
                </ul>
            </li>
            <li class="treeview {if condition="in_array( strtolower( $Request.controller ), ['order'] )"}active{/if}">
                <a href="{:url( 'order/index' )}"><i class="fa fa-money"></i> <span>订单</span>
                    <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{:url( 'order/index' )}"><i class="fa fa-circle-o"></i>订单</a></li>
                </ul>
            </li>
            <li class="treeview {if condition="in_array( strtolower( $Request.controller ), ['user'] )"}active{/if}">
                <a href="{:url( 'user/index' )}"><i class="fa fa-user"></i> <span>用户</span>
                    <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{:url( 'user/index' )}"><i class="fa fa-circle-o"></i>所有用户</a></li>
                </ul>
            </li>

        </ul>
        <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>